package com.ruoyi.vqms.service.impl;

import com.ruoyi.vqms.domain.VQMSFactory;
import com.ruoyi.vqms.mapper.VQMSFactoryMapper;
import com.ruoyi.vqms.service.IVQMSFactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工厂 服务层实现
 */
@Service
public class VQMSFactoryServiceImpl implements IVQMSFactoryService {
    @Autowired
    private VQMSFactoryMapper vqmsFactoryMapper;

    @Override
    public List<VQMSFactory> selectList(VQMSFactory vqmsFactory) {
        return vqmsFactoryMapper.selectList(vqmsFactory);
    }

    @Override
    public int add(VQMSFactory vqmsFactory) {
        return vqmsFactoryMapper.add(vqmsFactory);
    }

    @Override
    public VQMSFactory getById(Long id) {
        return vqmsFactoryMapper.getById(id);
    }

    @Override
    public int update(VQMSFactory vqmsFactory) {
        return vqmsFactoryMapper.update(vqmsFactory);
    }

    @Override
    public int delete(Long[] ids) {
        return vqmsFactoryMapper.delete(ids);
    }
}
